﻿// 增删改查按钮组
Ext.define('Kwan.ex.TreeBar', {
    extend: 'Ext.toolbar.Toolbar',
    pushItems: [],
    store: [],
    initComponent: function () {
        this.addEvents('operAdd', 'operEdit', 'operDel');
        this.items = [];
        this.items.push(this.pushItems);
        this.items.push(
        {
            scale: 'medium',
            text: '新增',
            icon: "/Admin/style/24Icons/plus.png",
            listeners: {
                scope: this,
                click: function () {
                    this.fireEvent('operAdd');
                }
            }
        }, '-', {
            scale: 'medium',
            text: '修改',
            icon: "/Admin/style/24Icons/Edit.png",
            listeners: {
                scope: this,
                click: function () {
                    this.fireEvent('operEdit');
                }
            }
        }, '-', {
            scale: 'medium',
            text: '删除',
            icon: "/Admin/style/24Icons/DeleteRed.png",
            listeners: {
                scope: this,
                click: function () {
                    this.fireEvent('operDel');
                }
            }
        });
        this.callParent(arguments);
    }
});
